package com.abu.notice.mapper;


import com.abu.notice.pojo.Notice;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 阿布
 * @since 2021-04-29
 */
public interface NoticeMapper extends BaseMapper<Notice> {

    List<Notice> selectLatestFive();

    List<Notice> selectByPageAndTime(@Param("page") Long page, @Param("size") Long size , @Param("beginTime") LocalDate beginTime, @Param("endTime") LocalDate endTime);

    List<Notice> selectByPage(Long page, Long size);

    Long selectNoticeTotalCount();

    Long selectAllNoticeTotalCount();

    List<Notice> selectAllByPage( @Param("page") Long page, @Param("size") Long size);

}
